/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.dahg.project.istu.web.commons.catalogos;

import com.dahg.project.istu.controller.model.Departamento;
import com.dahg.project.istu.controller.services.IServiceCatalogo;
import com.dahg.project.istu.controller.services.publicos.ICatalogoGeneralService;
import com.dahg.project.istu.web.commons.abstracto.AbstractConverter;
import com.dahg.project.istu.web.commons.abstracto.AbstractMantenimiento;
import com.dahg.project.istu.web.commons.abstracto.IConverterBean;
import java.util.List;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.faces.convert.Converter;

/**
 *
 * @author dahg
 */
@ManagedBean(name = "departamentoBean")
@ViewScoped
public class DepartamentoManagedBean extends AbstractMantenimiento<Departamento> implements IConverterBean {

    @EJB
    private ICatalogoGeneralService service;

    @Override
    public Converter getConverter() {
        return new AbstractConverter<Departamento>() {

            @Override
            public IServiceCatalogo<Departamento> getService() {
                return service.getDepartamentoCatalogo();
            }          
        };
    }

    @Override
    public void save() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void update() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void remove() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List<Departamento> getAll() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }    
    
}
